home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / dosisode / DOSISODE-RUNTIME.ZIP / SOCKETS / ERRNO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-17  |  4.1 KB  |  109 lines

  1. /*
  2. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. **
  4. ** This file is distributed under the terms listed in the document
  5. ** "copying.dj", available from DJ Delorie at the address above.
  6. ** A copy of "copying.dj" should accompany this file; if not, a copy
  7. ** should be available from where this file was obtained.  This file
  8. ** may not be distributed without a verbatim copy of "copying.dj".
  9. **
  10. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef errno_h
  15. #pragma once
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #define ENOENT     2        /* No such file or directory    */
  22. #define ENOTDIR  3              /* No path                      */
  23. /*#define EMFILE     4        /* Too many open files        */
  24. #define EINTR        4        /* Interrupted system call */
  25. #define EACCES     5        /* Permission denied        */
  26. #define EBADF     6        /* Bad file number        */
  27. #define EARENA   7        /* Arena trashed        */
  28. #define ENOMEM     8        /* Not enough core        */
  29. #define ESEGV    9        /* invalid memory address    */
  30. #define EBADENV 10        /* invalid environment        */
  31. #define ENODEV    15        /* No such device        */
  32. #define EINVAL    19        /* Invalid argument        */
  33. #define E2BIG    20        /* Arg list too long        */
  34. #define ENOEXEC 21        /* Exec format error        */
  35. #define EXDEV    22        /* Cross-device link        */
  36. #define EDOM    33        /* Math argument        */
  37. #define ERANGE    34        /* Result too large        */
  38. /*#define EEXIST    35        /* File already exists        */
  39. #define EEXIST    17        /* File already exists        */
  40.  
  41. #define ENFILE        23        /* File table overflow */
  42. #define EMFILE        24        /* Too many open files */
  43. #define ENOTTY        25        /* Not a typewriter */
  44. #define ETXTBSY        26        /* Text file busy */
  45. #define EFBIG        27        /* File too large */
  46. #define ENOSPC        28        /* No space left on device */
  47. #define ESPIPE        29        /* Illegal seek */
  48. #define EROFS        30        /* Read-only file system */
  49. #define EMLINK        31        /* Too many links */
  50. #define EPIPE        32        /* Broken pipe */
  51.  
  52. /* non-blocking and interrupt i/o */
  53. #define EWOULDBLOCK    35        /* Operation would block */
  54. #define EINPROGRESS    36        /* Operation now in progress */
  55. #define EALREADY    37        /* Operation already in progress */
  56. /* ipc/network software */
  57.  
  58.     /* argument errors */
  59. #define ENOTSOCK    38        /* Socket operation on non-socket */
  60. #define EDESTADDRREQ    39        /* Destination address required */
  61. #define EMSGSIZE    40        /* Message too long */
  62. #define EPROTOTYPE    41        /* Protocol wrong type for socket */
  63. #define ENOPROTOOPT    42        /* Protocol not available */
  64. #define EPROTONOSUPPORT 43        /* Protocol not supported */
  65. #define ESOCKTNOSUPPORT 44        /* Socket type not supported */
  66. #define EOPNOTSUPP    45        /* Operation not supported on socket */
  67. #define EPFNOSUPPORT    46        /* Protocol family not supported */
  68. #define EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  69. #define EADDRINUSE    48        /* Address already in use */
  70. #define EADDRNOTAVAIL    49        /* Can't assign requested address */
  71.  
  72.     /* operational errors */
  73. #define ENETDOWN    50        /* Network is down */
  74. #define ENETUNREACH    51        /* Network is unreachable */
  75. #define ENETRESET    52        /* Network dropped connection on reset */
  76. #define ECONNABORTED    53        /* Software caused connection abort */
  77. #define ECONNRESET    54        /* Connection reset by peer */
  78. #define ENOBUFS        55        /* No buffer space available */
  79. #define EISCONN        56        /* Socket is already connected */
  80. #define ENOTCONN    57        /* Socket is not connected */
  81. #define ESHUTDOWN    58        /* Can't send after socket shutdown */
  82. #define ETOOMANYREFS    59        /* Too many references: can't splice */
  83. #define ETIMEDOUT    60        /* Connection timed out */
  84. #define ECONNREFUSED    61        /* Connection refused */
  85.  
  86.     /* */
  87. #define ELOOP        62        /* Too many levels of symbolic links */
  88. #define ENAMETOOLONG    63        /* File name too long */
  89.  
  90. /* should be rearranged */
  91. #define EHOSTDOWN    64        /* Host is down */
  92. #define EHOSTUNREACH    65        /* No route to host */
  93. #define ENOTEMPTY    66        /* Directory not empty */
  94.  
  95. /* quotas & mush */
  96. #define EPROCLIM    67        /* Too many processes */
  97. #define EUSERS        68        /* Too many users */
  98. #define EDQUOT        69        /* Disc quota exceeded */
  99.  
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103.  
  104. #ifndef errno_h
  105. #define errno_h 1
  106. #endif
  107.  
  108. #endif
  109.